<template>
  <div>
    <hr>
    <h3>-------这是父组件--------{{ num }} {{ num2 }}</h3>
    <!-- 简写 -->

    <son :aa.sync="num" :cc.sync="num2" />
    <son :aa="num" :cc="num2" @update:aa="val=>num=val" @update:cc="val=>num2=val" />
  </div>
</template>

<script>

import son from './son.vue'
export default {
  components: { son },
  data() {
    return {
      num: 18,
      num2: 20
    }
  }

}
</script>

<style>

</style>
